package com.atguigu.jedis;

import redis.clients.jedis.Jedis;

/**
 * Created by Smexy on 2022/10/4
 *
 *
 */
public class Demo2String
{
    public static void main(String[] args) {

        Jedis jedis = new Jedis("hadoop102", 6379);

        jedis.set("jedis","myredis");

        //如果redis中数据的类型是string，key不存在，返回Null
        System.out.println(jedis.get("jedis1"));

        jedis.close();

    }
}
